#include <stdio.h>
#include <mpi.h>

main(int argc, char **argv) 
{
   int ierr, num_procs, my_id,rand_int;
   int* int_point;
   
   rand_int = 5;
   int_point = &rand_int;
   
   printf("Hello world! I'm process MAIN, My int* value is : %p\n", 
      int_point);
   
   /* START OF PARALELLISATION*/
   ierr = MPI_Init(&argc, &argv);
   
   /* find out MY process ID, and how many processes were started. */
   
   ierr = MPI_Comm_rank(MPI_COMM_WORLD, &my_id);
   ierr = MPI_Comm_size(MPI_COMM_WORLD, &num_procs);
   
   printf("Hello world! I'm process %i out of %i processes, My int* value is : %p\n", 
      my_id, num_procs, int_point); 
         
   ierr = MPI_Finalize();
   /* END OF PARALELLISATION*/
}



